<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Blockly Games: Admin : Form Test</title>
    <link rel="stylesheet" href="admin.css">
    <style>
      input[type="text"] {
        width: 40em;
      }
    </style>
  </head>
  <body>
    <h1><a href="./">Blockly Games</a> :
    <a href="../admin">Admin</a> : Form Test</h1>

    <h2>/scripts/storage.py</h2>
    <form action="/scripts/storage.py" method="post">
      <table>
        <tr>
          <td>app:</td>
          <td><input type="text" name="app" value="maze"></td>
        </tr>
        <tr>
          <td>data:</td>
          <td><input type="text" name="data" value="Hello world!"></td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" value="Store"></td>
        </tr>
      </table>
    </form>

    <h2>/scripts/errorReporter.py</h2>
    <form action="/scripts/errorReporter.py" method="post">
      <table>
        <tr>
          <td>url:</td>
          <td><input type="text" name="url" id="urlInput"></td>
        </tr>
        <tr>
          <td>error:</td>
          <td><input type="text" name="error" value="I'm a teapot!"></td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" value="Report"></td>
        </tr>
      </table>
    </form>
    <script>
      document.getElementById('urlInput').value = location;
    </script>
  </body>
</html>
